package com.example.gustavo.hello.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class SmsStateReceiver extends BroadcastReceiver {


    private static final String TAG = "Receiver";

    public SmsStateReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {

        if(intent != null){

            Bundle extras = intent.getExtras();
            for (String s : extras.keySet()) {

                Log.w(TAG,"key= " + s+" value= "+extras.get(s));
            }


            Log.w(TAG,"Sms receive" + intent.toString());
        }



    }
}
